package com.book.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Date;

/**
 * (TbMe)表实体类
 *
 * @author makejava
 * @since 2024-11-07 19:53:31
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@TableName(value = "tb_me")
//收藏图书表
public class TbMe extends Model<TbMe> {
    //收藏图书id
    @TableId(type = IdType.AUTO)
    private Integer meId;
//用户id
    private Integer uid;
//书id
    private Integer bid;
//创建时间
    private Date createTime;
//修改时间
    private Date updateTime;

    public TbMe(Integer uid, Integer bid) {
        this.uid = uid;
        this.bid = bid;
        this.createTime = new Date();
    }
}

